//package com.starblink.home.ui.adapter
//
//import android.R
//import android.app.Activity
//import android.view.View
//import android.widget.ImageView
//import androidx.appcompat.widget.AppCompatImageView
//import androidx.recyclerview.widget.RecyclerView
//import com.starblink.android.basic.sensorsdata.extension.trackData
//import com.starblink.android.basic.sensorsdata.spm.cfg.SpmElementDef
//import com.starblink.android.basic.sensorsdata.spm.cfg.SpmPageDef
//import com.starblink.android.basic.urllink.PullUpPageUtils
//import com.starblink.android.basic.util.ImageUtils
//import com.starblink.basic.util.log.YYLogUtils
//import com.starblink.rocketreserver.fragment.MaterialVOF
//import com.zhpan.bannerview.BaseBannerAdapter
//import com.zhpan.bannerview.BaseViewHolder
//
//
///**
// * @author dyhpc
// */
//class FeedsBannerNewAdapter(
//    var modelPosition:Int,
//    var context: Activity
//) :
//    BaseBannerAdapter<MaterialVOF.MaterialDetailList>() {
//    override fun bindData(
//        holder: BaseViewHolder<MaterialVOF.MaterialDetailList>?,
//        data: MaterialVOF.MaterialDetailList?,
//        position: Int,
//        pageSize: Int
//    ) {
//
//        var img = holder!!.findViewById(com.starblink.home.R.id.b_img) as ImageView
//
//        data?.let {
//            ImageUtils.loadImage(
//                context,
//                data.materialDetailVOF.linkUrl,
//                img,
//                com.starblink.basic.style.R.drawable.one_page_skeleton_7,
//                ImageUtils.errorImage
//            )
//            img.setOnClickListener { v: View? ->
//
//                YYLogUtils.e("资源位 ---》${data.materialDetailVOF.jumpUrl}")
//                data.materialDetailVOF.jumpUrl?.let {
//                    PullUpPageUtils.routePageIntercept4Url(
//                        activity = context,
//                        url = it
//                    )
//                }
//            }
//            img.trackData(
//                page = SpmPageDef.Home080Page_10164,
//                element = SpmElementDef.HomeNewOperationSelect_33012,
//                params = mapOf("id" to data.materialDetailVOF .materialId.toString() ,"index" to modelPosition.toString())
//            )
//        }
//    }
//
//    override fun getLayoutId(viewType: Int): Int {
//       return  com.starblink.home.R.layout.item_home_feeds_img_banner
//    }
//
//}